<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <title>报表管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="../css/bootstrap.min.css" />
    <link rel="stylesheet" href="../css/index.css" />
    <script src="../js/jquery-1.11.3.js"></script>
    <script src="../js/bootstrap.js"></script>
    <script src="../js/index.js"></script>
    <style>
        .aside{
            width: 14%;
        }
    </style>
</head>

<body>
    <div id="barTop" class="progressBar"></div>
    <div class="header row" style="text-align: center; background: #850b06; color: #fff;margin: 0;">
        <div class="col-sm-12">
            <h4 class="title">投资计划管理信息系统</h4>
            <div class="mianbaoxie"><a href="../index.html">省交通建设计划</a>>报表管理</div>
        </div>
    </div>
    <div class="row" style="margin: 0;">
        <div class="aside col-sm-1">
            <!--<div class="panel-group" id="myid">-->
            <div class="panel">
                <div class="panel-collapse in" id="No01">
                    <div class="panel-body">
                        <div class="panel">
                            <div class="panel-heading">
                                <a data-toggle="collapse" href="#No1">
                                    <p>报表管理</p>
                                </a>
                            </div>
                            <div class="panel-collapse in" id="No1">
                                <div class="panel-body">
                                    <ul class="select">
                                        <li id="road_report_make" class="none">
                                            <p>报表制作管理</p>
                                        </li>
                                        <li id="road_report_upload" class="active">
                                            <p>上报任务管理</p>
                                        </li>
                                        <li id="road_report_accept">
                                            <p>数据接收及审核管理</p>
                                        </li>
                                        <li id="road_report_search">
                                            <p>省级数据上报及查询管理</p>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-10" style="padding:0;width:86%">
            <div class="index_right" id="index_right_div" style=" width:100%;height:100%;">
                <iframe scrolling="no" id="index_right_page" style="width:100%; height:100%;border: none; background: #f1f1f1;"></iframe>
            </div>
        </div>
    </div>
    <script>
        $(function () { })
        var iframe = document.getElementById("index_right_page");
        iframe.src = "../frames/frame_sj_report_upload.html";
        if(localStorage.getItem('name') == '浙江省交通运输厅'){
            $('#road_report_make').removeClass('none').addClass('active').siblings().removeClass('active');
            iframe.src = '../frames/frame_sj_report_make.html';
        }
        var index_right_div_height;
        // iframe.onload = function () {
            var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
            index_right_div_height = iframeWin.document.body.scrollHeight < 950 ? 950 : iframeWin.document.body.scrollHeight;
            document.getElementById("index_right_div").style.height = index_right_div_height + "px";
        // }
        $("#road_report_make").click(function () {
            $("#index_right_page").attr("src", "../frames/frame_sj_report_make.html")
        })
        $("#road_report_upload").click(function () {
            $("#index_right_page").attr("src", "../frames/frame_sj_report_upload.html")
        })
        $("#road_report_accept").click(function () {
            $("#index_right_page").attr("src", "../frames/frame_sj_report_accept.html")
        })
        $("#road_report_search").click(function () {
            $("#index_right_page").attr("src", "../frames/frame_sj_report_search.html")
        });
    </script>
</body>

</html>